#include "mylabel.h"
#include<QDebug>
mylabel::mylabel(QWidget *parent) : QLabel(parent)
{

}


//鼠标点击
void mylabel::mousePressEvent(QMouseEvent *ev)
{
  MainWindow::click_width=ev->x();
  MainWindow::click_height=ev->y();
  MainWindow::valve++;
}

//鼠标释放
void mylabel::mouseReleaseEvent(QMouseEvent *ev)
{
MainWindow::release_width=ev->x();
MainWindow::release_height=ev->y();
}


